<template>
	<view class="content" :style="{background:$store.state.bgPrimaryColor}">
		<!-- <image src="../../static/zuojian.png" mode="" class="zuo" @click="fanhui"></image> -->
		<view class="_back">
			<view class="message_Flex">
				<text>注意：学生腾讯会议号的名字需跟平台名字一模一样</text>
				<view class="view">
					<view class="yuan"></view>
					<u--image :showLoading="true" src="../../static/more.png" width="28rpx" height="28rpx"></u--image>
				</view>
			</view>
		</view>
		<view class="BoxBody">
			<view class="" style="display: flex;">
				<image :src="coachInfo.avatar" mode="aspectFill"
					style="width: 120rpx;height: 120rpx;margin: 22rpx 0 0 24rpx;border-radius: 50%;"></image>
				<view class="">
					<view class="BoxBottom">
						{{coachInfo.speciality}}
					</view>
					<view class="BoxItem">
						<view class="ClickFlex">
							{{coachInfo.name}}
						</view>
						<view class="Flex"> 美国教师 </view>
					</view>
				</view>
			</view>
			<view class="" style="margin: 52rpx 20rpx 0 24rpx;">
				<view class="ItemNotes">
					<view class="Newqrcode"> 会议号 </view>
					<view class="WithdrawalFlex" @click="copy(coachInfo.meeting_number)">
						<view class="">
							{{coachInfo.meeting_number}}
						</view>
						<image src="../../static/more.png" mode=""></image>
					</view>
				</view>
				<view class="ItemNotes">
					<view class="Newqrcode"> 入会密码 </view>
					<view class="WithdrawalFlex" @click="copy(coachInfo.meeting_password)">
						<view class="">
							{{coachInfo.meeting_password}}
						</view>
						<image src="../../static/more.png" mode=""></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import {
		teacher_info,
	} from '../../api/Teacher.js';
	export default {
		data() {
			return {
				coachInfo: []
			}
		},
		mounted() {},
		onLoad(option) {
			teacher_info({
				teacher_id: option.teacher_id
			}).then(res => {
				this.coachInfo = res.data;
			}).catch(err => {
				this.$util.Tips({
					title: err
				});
			})
		},
		methods: {
			fanhui() {
				uni.navigateBack()
			},
			copy(value) {
				uni.setClipboardData({
					data: value, //要被复制的内容
					success: () => { //复制成功的回调函数
						uni.showToast({ //提示
							title: '复制成功'
						})
					}
				});
			}
		}
	}
</script>
<style>
	page {
		background-color: #f7f7f7;
	}
</style>
<style scoped lang="scss">
	.content {
		width: auto;
		height: 30vh;
		position: relative;

		.zuo {
			width: 40rpx;
			height: 40rpx;
			margin-top: 10rpx;
			margin-left: 44rpx;
		}

		._back {
			// background-color: #ffe3cd;
			padding-top: 20rpx;
		}

		.message_Flex {
			width: 92%;
			height: auto;
			margin: 0px auto;
			background-image: url('../../static/Home/gb.png');
			border-radius: 20rpx;
			height: 50px;
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 10rpx;
			padding: 0 40rpx;

			text {
				width: 80%;
				font-size: 24rpx;
				color: #333;
				margin: 0px auto;
				display: flex;
				justify-content: center;
			}

			.view {
				display: flex;
				align-items: center;

				.yuan {
					width: 14rpx;
					height: 14rpx;
					background: #2581FF;
					border-radius: 50%;
					margin-right: 10rpx;
				}
			}
		}

		.BoxBody {
			width: 668rpx;
			height: 332rpx;
			background: #FFFFFF;
			margin: 38rpx auto 0;
			border-radius: 16rpx;
			opacity: 0.75;

			.BoxBottom {
				font-size: 16px;
				font-weight: 600;
				margin: 32rpx 0 0 25rpx;
			}

			.BoxItem {
				display: flex;

				.ClickFlex {
					font-size: 14px;
					font-weight: 600;
					margin: 10rpx 0 0 30rpx;
				}

				.Flex {
					font-size: 12px;
					color: #888888;
					margin: 14rpx 0 0 20rpx;
				}
			}

			.ItemNotes {
				display: flex;
				justify-content: space-between;
				margin-bottom: 20rpx;

				.Newqrcode {
					font-size: 14px;
					font-weight: 600;
				}

				.WithdrawalFlex {
					display: flex;
					font-size: 14px;

					image {
						width: 34rpx;
						height: 34rpx;
						margin-left: 20rpx;
						margin-top: 3rpx;
					}
				}
			}
		}
	}
</style>